package com.j283_5.wisdom_park.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.j283_5.wisdom_park.common.result.ResultData;
import com.j283_5.wisdom_park.pojo.Article;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 文章表 服务类
 * </p>
 *
 * @author laoda
 * @since 2022-04-28
 */
public interface ArticleService  {


    /**
     * 多条件查询文章信息
     * @param article
     * @return
     */
    Map<String,Object> findArticle(
            @Param("article")Article article,
            Integer page,
            Integer limit
    );

    /**
     * 文章新增
     * @param article
     * @return
     */
    ResultData insertArticle(
      @Param("article")Article   article
    );

    /**
     * 查询添加的下拉框
     * @param
     * @return
     */
    Map<String,Object>  findInsert();

    /**
     * 文章删除
     * @param articleId
     * @return
     */
    ResultData deleteArticle(
      List<Integer> articleId
    );
}
